<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-6">
            <h1 class="page-header">微信自定义菜单</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>	

    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
            	<a href="{:U('User/CustomMenu/node_add')}" class="btn btn-success">新建</a>
                <div class="panel-heading">
                     菜单列表
                </div>
                <!-- /.panel-heading -->

	                <div class="panel-body">
                        <div class="col-lg-12">
	                        <div class="table-responsive">
                                <table class="table">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th>名称</th>
                                            <th>类型</th>
                                            <th>关键字</th>
                                            <th>链接</th>
                                            <th>排序</th>
                                            <th class="textAlignCenter">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
	                                    <volist name="list" id="node">
	                                        <tr>
	                                            <td>&bull;</td>
	                                            <td>{$node.title}</td>
	                                            <td>{$node.type}</td>
	                                            <td>{$node.keyword}</td>
	                                            <td class="limitedLength">{$node.url}</td>
	                                            <td>{$node.sort}</td>
	                                            <td><a href="{:U('User/CustomMenu/node_edit?id='.$node['id'])}" class="btn btn-success">编辑</a>
	                                                <a href="{:U('User/CustomMenu/node_delete?id='.$node['id'])}" class="btn btn-danger">删除</a>
	                                            </td>
	                                        </tr>
	                                        <volist name="node.childNode" id="childNode">
	                                          <tr>
                                                <td>|——</td>
                                                <td>{$childNode.title}</td>
	                                            <td>{$childNode.type}</td>
	                                            <td>{$childNode.keyword}</td>
	                                            <td class="limitedLength">{$childNode.url}</td>
	                                            <td>{$childNode.sort}</td>
                                                <td>
                                                    <a href="{:U('User/CustomMenu/node_edit?id='.$childNode['id'])}" class="btn btn-success">编辑</a>
                                                    <a href="{:U('User/CustomMenu/node_delete?id='.$childNode['id'])}" class="btn btn-danger">删除</a>
                                                </td>
                                               </tr>
	                                        </volist> 
	                                    </volist>
                                       
                                    </tbody>
                                </table>
                                <a href="{:U('User/CustomMenu/menu_send')}" class="btn btn-success">发布</a>
                                <a href="{:U('User/CustomMenu/menu_delete')}" class="btn btn-danger">停用</a>

                            </div>
                            <!-- /.table-responsive -->
                        
	                        <div class="pages">
	                        	{$page}
	                        </div>
                    	</div>
                        <!-- / .col-lg-12 -->
	                </div>
	                <!-- / .panel-body -->
                </div>
                <!-- /.panel-body -->
            </div>
            <!-- /.panel -->
        </div>
        <!-- /.col-lg-12 -->
    </div>	

</div>